package com.dhkj.web.idf.model;

import android.os.Parcel;
import android.os.Parcelable;

public class RecognizeSet implements Parcelable {
    //"amount_mode": 0,
    //        "arrange_mode": 2,
    //        "auto_split_mode": 0,
    //        "border_color": "#004080",
    //        "border_show": 1,
    //        "border_size": 1,
    //        "font_color": "#FFFFFF",
    //        "font_size": 20,
    //        "image_save_days": 5,
    //        "image_show": 1,
    //        "iron_pan_mode": 1,
    //        "match_number": 5,
    //        "name_show": 1,
    //        "number_mode": 1,
    //        "prevent_blocking_mode": 1,
    //        "price_show": 1,
    //        "recognition_mode": 0,
    //        "template_number": 50,
    //        "template_threshold": 0.8

    private int amount_mode;
    private int arrange_mode;
    private int auto_split_mode;
    private String border_color;
    private int border_show;
    private int border_size;
    private String font_color;
    private int font_size;
    private int image_save_days;
    private int image_show;
    private int iron_pan_mode;
    private int match_number;
    private int name_show;
    private int number_mode;
    private int prevent_blocking_mode;
    private int price_show;
    private int recognition_mode;
    private int template_number;
    private float template_threshold;

    public RecognizeSet() {
    }

    public int getAmount_mode() {
        return amount_mode;
    }

    public void setAmount_mode(int amount_mode) {
        this.amount_mode = amount_mode;
    }

    public int getArrange_mode() {
        return arrange_mode;
    }

    public void setArrange_mode(int arrange_mode) {
        this.arrange_mode = arrange_mode;
    }

    public int getAuto_split_mode() {
        return auto_split_mode;
    }

    public void setAuto_split_mode(int auto_split_mode) {
        this.auto_split_mode = auto_split_mode;
    }

    public String getBorder_color() {
        return border_color;
    }

    public void setBorder_color(String border_color) {
        this.border_color = border_color;
    }

    public int getBorder_show() {
        return border_show;
    }

    public void setBorder_show(int border_show) {
        this.border_show = border_show;
    }

    public int getBorder_size() {
        return border_size;
    }

    public void setBorder_size(int border_size) {
        this.border_size = border_size;
    }

    public String getFont_color() {
        return font_color;
    }

    public void setFont_color(String font_color) {
        this.font_color = font_color;
    }

    public int getFont_size() {
        return font_size;
    }

    public void setFont_size(int font_size) {
        this.font_size = font_size;
    }

    public int getImage_save_days() {
        return image_save_days;
    }

    public void setImage_save_days(int image_save_days) {
        this.image_save_days = image_save_days;
    }

    public int getImage_show() {
        return image_show;
    }

    public void setImage_show(int image_show) {
        this.image_show = image_show;
    }

    public int getIron_pan_mode() {
        return iron_pan_mode;
    }

    public void setIron_pan_mode(int iron_pan_mode) {
        this.iron_pan_mode = iron_pan_mode;
    }

    public int getMatch_number() {
        return match_number;
    }

    public void setMatch_number(int match_number) {
        this.match_number = match_number;
    }

    public int getName_show() {
        return name_show;
    }

    public void setName_show(int name_show) {
        this.name_show = name_show;
    }

    public int getNumber_mode() {
        return number_mode;
    }

    public void setNumber_mode(int number_mode) {
        this.number_mode = number_mode;
    }

    public int getPrevent_blocking_mode() {
        return prevent_blocking_mode;
    }

    public void setPrevent_blocking_mode(int prevent_blocking_mode) {
        this.prevent_blocking_mode = prevent_blocking_mode;
    }

    public int getPrice_show() {
        return price_show;
    }

    public void setPrice_show(int price_show) {
        this.price_show = price_show;
    }

    public int getRecognition_mode() {
        return recognition_mode;
    }

    public void setRecognition_mode(int recognition_mode) {
        this.recognition_mode = recognition_mode;
    }

    public int getTemplate_number() {
        return template_number;
    }

    public void setTemplate_number(int template_number) {
        this.template_number = template_number;
    }

    public float getTemplate_threshold() {
        return template_threshold;
    }

    public void setTemplate_threshold(float template_threshold) {
        this.template_threshold = template_threshold;
    }

    public RecognizeSet(Parcel in) {
        this.amount_mode = in.readInt();
        this.arrange_mode = in.readInt();
        this.auto_split_mode = in.readInt();
        this.border_color = in.readString();

        this.border_show = in.readInt();
        this.border_size = in.readInt();
        this.font_color = in.readString();

        this.font_size = in.readInt();
        this.image_save_days = in.readInt();
        this.image_show = in.readInt();
        this.iron_pan_mode = in.readInt();
        this.match_number = in.readInt();
        this.name_show = in.readInt();
        this.number_mode = in.readInt();
        this.prevent_blocking_mode = in.readInt();
        this.price_show = in.readInt();
        this.recognition_mode = in.readInt();
        this.template_number = in.readInt();
        this.template_threshold = in.readFloat();
    }

    public static final Parcelable.Creator<RecognizeSet> CREATOR = new Parcelable.Creator<RecognizeSet>() {
        @Override
        public RecognizeSet createFromParcel(Parcel in) {
            return new RecognizeSet(in);
        }

        @Override
        public RecognizeSet[] newArray(int size) {
            return new RecognizeSet[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeInt(this.amount_mode);
        parcel.writeInt(this.arrange_mode);
        parcel.writeInt(this.auto_split_mode);
        parcel.writeString(this.border_color);

        parcel.writeInt(this.border_show);
        parcel.writeInt(this.border_size);
        parcel.writeString(this.font_color);

        parcel.writeInt(this.font_size);
        parcel.writeInt(this.image_save_days);
        parcel.writeInt(this.image_show);
        parcel.writeInt(this.iron_pan_mode);
        parcel.writeInt(this.match_number);
        parcel.writeInt(this.name_show);
        parcel.writeInt(this.number_mode);
        parcel.writeInt(this.prevent_blocking_mode);
        parcel.writeInt(this.price_show);
        parcel.writeInt(this.recognition_mode);
        parcel.writeInt(this.template_number);
        parcel.writeFloat(this.template_threshold);
    }
}
